<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-customer-edit" th:object="${veCustomer}">
            <input name="customerID" th:field="*{CustomerID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户的姓名：</label>
                <div class="col-sm-8">
                    <input name="CustomerName" th:field="*{customerName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户的电子邮件地址：</label>
                <div class="col-sm-8">
                    <input name="Email" th:field="*{email}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户的联系电话：</label>
                <div class="col-sm-8">
                    <input name="PhoneNumber" th:field="*{phoneNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户的地址：</label>
                <div class="col-sm-8">
                    <input name="Address" th:field="*{address}" class="form-control" type="text">
                </div>
            </div>

            <input name="flowInstanceId" th:field="*{flowInstanceId}" class="form-control" type="hidden" >

            <div class="form-group">
                <label class="col-sm-3 control-label">是否同意：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_user_agree')}">
                        <input type="radio" th:id="${dict.dictCode}" name="agree" th:value="${dict.dictValue}"
                               th:field="*{agree}">
                        <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-xs-2 control-label">备注：</label>
                        <div class="col-xs-10">
                            <textarea name="comment" maxlength="500" class="form-control" rows="3" required></textarea>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 添加选项卡部分 -->
            <ul class="nav nav-tabs" id="myTab">
                <li class="active"><a href="#tab1" data-toggle="tab">审批结果</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="tab1">
                    <!-- 在这里添加基本信息的内容 -->
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <th>任务的办理人</th>
                            <th>任务的名称</th>
                            <th>任务的节点</th>
                            <th>批注</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="taskComment,var : ${taskCommentVoList}">
                            <td th:text="${var.count}"></td>
                            <td th:text="${taskComment.userName}"></td>
                            <td th:text="${taskComment.taskName}"></td>
                            <td th:text="${taskComment.taskKeyId}"></td>
                            <td th:text="${taskComment.message}"></td>
                        </tr>
                        <!-- 添加更多行数据或使用循环来生成行数据 -->
                        </tbody>
                    </table>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/customer";
        $("#form-customer-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/editnoauthdata", $('#form-customer-edit').serialize());
            }
        }
    </script>
</body>
</html>